
:root {
  --qf-padding-body: 20px 30px;
  --qf-dialog-padding: 20px;
  --qf-input-padding:1px 11px;//form表单
}
@import url(./form.scss);
/* 设置 notification、message 层级在 loading 之上 */

.el-message,
.el-notification {
  z-index: 3000 !important;
}

/* el-alert */
.el-alert {
  border: 1px solid;
}

/* 当前页面最大化 css */
.main-maximize {

  .aside-split,
  .el-aside,
  .el-header,
  .el-footer,
  .tabs-box {
    display: none !important;
  }

  .el-container .classic-content .classic-main {
    padding-top: 0 !important;
  }
}

/* mask image */
.mask-image {
  padding-right: 50px;
  mask-image: linear-gradient(90deg, #000000 0%, #000000 calc(100% - 50px), transparent);
}

/* custom card */
.card {
  box-sizing: border-box;
  padding: 20px;
  overflow-x: hidden;
  background-color: var(--el-bg-color);
  //border: 1px solid var(--el-border-color-light);
  border-radius: 6px;
  box-shadow: 0 0 12px rgb(0 0 0 / 5%);
}

/* ProTable 不需要 card 样式（在组件内使用 ProTable 会使用到） */
.no-card {
  .card {
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .table-search {
    padding: 18px 0 0 !important;
    margin-bottom: 0 !important;
  }
}

/* content-box (常用内容盒子) */
.content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;

  .text {
    margin: 20px 0 30px;
    font-size: 23px;
    font-weight: bold;
    color: var(--el-text-color-regular);
  }

  .el-descriptions {
    width: 100%;
    padding: 40px 0 0;

    .el-descriptions__title {
      font-size: 18px;
    }

    .el-descriptions__label {
      width: 200px;
    }
  }
}

/* main-box (树形表格 treeFilter 页面会使用，左右布局 flex) */
.main-box {
  display: flex;
  width: 100%;
  height: 100%;

  .table-box {
    // 这里减去的 230px 是 treeFilter 组件宽度
    width: calc(100% - 230px);
  }
}

/* proTable */
.table-box,
.table-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;

  // table-search 表格搜索样式
  .table-search {
    padding: 18px 18px 0;
    margin-bottom: 10px;

    .el-form {
      .el-form-item__content>* {
        width: 100%;
      }

      // 去除时间选择器上下 padding
      .el-range-editor.el-input__wrapper {
        padding: 0 10px;
      }
    }

    .operation {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      margin-bottom: 18px;
    }
  }

  // 表格 header 样式
  .table-header {
    .header-button-lf {
      float: left;
    }

    .header-button-ri {
      float: right;
    }

    .el-button {
      margin-bottom: 15px;
    }
  }

  // el-table 表格样式
  .el-table {
    flex: 1;

    // 修复 safari 浏览器表格错位 https://github.com/HalseySpicy/Geeker-Admin/issues/83
    table {
      width: 100%;
    }

    .el-table__header th {
      height: 45px;
      font-size: 15px;
      font-weight: bold;
      color: var(--el-text-color-primary);
      background: var(--el-fill-color-light);
    }

    .el-table__row {
      height: 45px;
      font-size: 14px;

      .move {
        cursor: move;

        .el-icon {
          cursor: move;
        }
      }
    }

    // 设置 el-table 中 header 文字不换行，并省略
    .el-table__header .el-table__cell>.cell {
      // white-space: nowrap;
      white-space: wrap;
    }

    // 解决表格数据为空时样式不居中问题(仅在element-plus中)
    .el-table__empty-block {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);

      .table-empty {
        line-height: 30px;
      }
    }

    // table 中 image 图片样式
    .table-image {
      width: 50px;
      height: 50px;
      border-radius: 50%;
    }
  }

  // 表格 pagination 样式
  .el-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
  }
}

/* el-table 组件大小 */
.el-table--small {
  .el-table__header th {
    height: 40px !important;
    font-size: 14px !important;
  }

  .el-table__row {
    height: 40px !important;
    font-size: 13px !important;
  }
}

.el-table--large {
  .el-table__header th {
    height: 50px !important;
    font-size: 16px !important;
  }

  .el-table__row {
    height: 50px !important;
    font-size: 15px !important;
  }
}
/* 模态框\抽屉 全局样式 */
/* el-drawer 右侧弹窗*/
.el-drawer {

  .el-drawer__header {
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--el-border-color-lighter);

    .merak_modal_title {
      font-size: 17px;
      color: var(--el-text-color-primary);
    }

    span {
      font-size: 17px;
      line-height: 17px;
    }

    .el-drawer__close-btn {
      flex: 0;
    }
  }

  .el-drawer__body {
    padding: var(--qf-padding-body);

    .el-scrollbar {
      padding-right: 25px;
      margin-right: -25px;
    }

    .el-row{
      margin-right: 0px!important;
      margin-left: 0px!important;
      .el-col.el-col-12{
        padding-left: 0px!important;
        padding-right: 0px!important;
        &:nth-child(2n-1) {
          padding-right: 20px!important;
        }
        &:nth-child(2n) {
          padding-left: 20px!important;
        }
      }
    }
  }

  .el-drawer__footer {
    text-align: center;
    border-top: 1px solid var(--el-border-color-lighter);
    padding: var(--el-drawer-padding-primary);
  }

  // select 样式
  .el-select {
    width: 100%;
  }

  // drawer-form 中存在两列 form-item 样式
  .drawer-multiColumn-form {
    display: flex;
    flex-wrap: wrap;

    .el-form-item {
      width: 45%;

      &:nth-child(2n-1) {
        margin-right: 9%;
      }
    }
  }
}

/* el-dialog */
.el-dialog {
  padding: 0px;

  .el-dialog__header {
    display: flex;
    justify-content: space-between;
    align-items: unset;
    padding: 15px 15px 10px;
    margin: 0;
    border-bottom: 1px solid var(--el-border-color-lighter);

    .el-dialog__title {
      font-size: 17px;
      color: var(--el-text-color-primar);
    }

    .el-dialog__headerbtn {
      font-size: 20px;
      position: static;
      width: auto;
      height: auto;
    }
  }

  .el-dialog__body {
    padding: var(--qf-padding-body);
  }

  .el-dialog__footer {
    border-top: 1px solid var(--el-border-color-lighter);
    padding: var(--qf-dialog-padding);
  }
}



// tree树结构
.el-tree-node {
  white-space: normal;

  .el-tree-node__content {
    height: auto;

    .el-tree-node__label {
      padding: 7px 0;
    }
  }

}

.merak-aside {
  .el-scrollbar {
    margin-right: -20px;
    padding-right: 20px;
  }
}

// 高级搜索模态样式
.advanced-modal .modal-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;

  .modal-title {
    padding: 20px 0px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: $font_color3133;
    // border-bottom: 1px solid #f3f3f3;
  }

  .modal—body {
    overflow: hidden;
    flex: 1;
    padding: 0px 10px;

    .el-scrollbar.search_from_scrollbar {
      padding-right: 5px;
      margin-right: -5px;
    }
  }

  .modal-footer {
    padding: 20px 0px;
    text-align: center;
    // border-top: 1px solid #f3f3f3;
  }

  .scrollbar-content {
    padding: 0 20px;
  }
}

// 高级搜索模态样式

/* el-button 公共样式  杨新宽*/
.el-button {
  padding: var(--merak-button-padding);
  height: var(--merak-button-size);
  min-width: var(--merak-button-min-width);
  font-size: var(--merak-text-size);
  font-weight: 400;

  &.is-circle,
  &:not(:has(span)) {
    padding: 0;
    min-width: auto;
    width: var(--merak-button-size);
  }

  &.el-button--large {
    height: var(--merak-button-large-size);

    &.is-circle,
    &:not(:has(span)) {
      width: var(--merak-button-large-size);
    }
  }

  &.el-button--small {
    height: var(--merak-button-small-size);

    &.is-circle,
    &:not(:has(span)) {
      width: var(--merak-button-small-size);
    }
  }

  &.el-button--default:not([class*="primary"], [class*="success"], [class*="info"], [class*="warning"], [class*="danger"]) {

    &:hover,
    &:active {
      background-color: transparent;
    }
  }

  &>[class*="el-icon"]+span {
    margin-left: var(--merak-icon-space);
  }
}
/* el-button 公共样式 end */

/* el 下拉控件不加粗 */
.el-select-dropdown__item.is-selected,
.el-cascader-node.in-active-path,
.el-cascader-node.is-active,
.el-cascader-node.is-selectable.in-checked-path,
.el-date-table td.today .el-date-table-cell__text {
  font-weight: 400;
}
.el-select__placeholder {
  color: var(--merak-text-color);
}
